package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.UserPartyDevelopMapper;
import com.ruoyi.system.domain.UserPartyDevelop;
import com.ruoyi.system.service.IUserPartyDevelopService;

/**
 * 党员发展状态Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-07-25
 */
@Service
public class UserPartyDevelopServiceImpl implements IUserPartyDevelopService 
{
    @Autowired
    private UserPartyDevelopMapper userPartyDevelopMapper;

    /**
     * 查询党员发展状态
     * 
     * @param userId 党员发展状态主键
     * @return 党员发展状态
     */
    @Override
    public UserPartyDevelop selectUserPartyDevelopByUserId(Long userId)
    {
        return userPartyDevelopMapper.selectUserPartyDevelopByUserId(userId);
    }

    /**
     * 查询党员发展状态列表
     * 
     * @param userPartyDevelop 党员发展状态
     * @return 党员发展状态
     */
    @Override
    public List<UserPartyDevelop> selectUserPartyDevelopList(UserPartyDevelop userPartyDevelop)
    {
        return userPartyDevelopMapper.selectUserPartyDevelopList(userPartyDevelop);
    }
    
    /**
     * 根据文件审核状态查询党员发展列表
     * 
     */
    @Override
    public List<UserPartyDevelop> selectUserCheckStatus(UserPartyDevelop userPartyDevelop)
    {
        return userPartyDevelopMapper.selectUserCheckStatus(userPartyDevelop);
    }

    /**
     * 新增党员发展状态
     * 
     * @param userPartyDevelop 党员发展状态
     * @return 结果
     */
    @Override
    public int insertUserPartyDevelop(UserPartyDevelop userPartyDevelop)
    {
        return userPartyDevelopMapper.insertUserPartyDevelop(userPartyDevelop);
    }

    /**
     * 修改党员发展状态
     * 
     * @param userPartyDevelop 党员发展状态
     * @return 结果
     */
    @Override
    public int updateUserPartyDevelop(UserPartyDevelop userPartyDevelop)
    {
        return userPartyDevelopMapper.updateUserPartyDevelop(userPartyDevelop);
    }

    /**
     * 批量删除党员发展状态
     * 
     * @param userIds 需要删除的党员发展状态主键
     * @return 结果
     */
    @Override
    public int deleteUserPartyDevelopByUserIds(Long[] userIds)
    {
        return userPartyDevelopMapper.deleteUserPartyDevelopByUserIds(userIds);
    }

    /**
     * 删除党员发展状态信息
     * 
     * @param userId 党员发展状态主键
     * @return 结果
     */
    @Override
    public int deleteUserPartyDevelopByUserId(Long userId)
    {
        return userPartyDevelopMapper.deleteUserPartyDevelopByUserId(userId);
    }
}
